import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const Recomment = () => import('components/recommend/recommend')
const Singer = () => import('components/singer/singer')
const Rank = () => import('components/rank/rank')
const Search = () => import('components/search/search')
const SingerDetail = () => import('components/singer-detail/singer-detail')
export default new VueRouter({
    routes: [
        {
            path: '/',
            redirect: '/recommend'
        },
        {
            path: '/recommend',
            component: Recomment
        },
        {
            path: '/singerDetail/:id',
            component: SingerDetail
        },

        {
            path: '/singer',
            component: Singer
        },
        {
            path: '/rank',
            component: Rank
        },
        {
            path: '/search',
            component: Search
        }
    ]

})
